import Layout from '@/views/layout/index'

const courseRouter = {
    path: '/course',
    component: Layout,
    name: 'course',
    meta: {
        title: '课程管理',
        icon: 'iconfont icon-kecheng1'
    },
    redirect: "/course/manage",
    children: [{
        path: 'manage',
        name: 'courseManage',
        component: () => import('@/views/course/manage'),
        meta: {
            title: '课程管理',
            icon: 'iconfont icon-kecheng1',
            api: ['course'],
            authority: ['list'],
        },
        checkedList: [],
        rights: [{
                value: 'list',
                label: '列表'
            },{
                value: 'edit',
                label: '编辑'
            }]
    },{
      path: 'edit',
      name: 'editCourseInfo',
      component: () => import('@/views/course/edit'),
      hidden: true,
      meta: {
        title: '课程信息编辑',
        api: ['course'],
        authority: ['list', 'edit']
      }
    }]
}

export default courseRouter